package srms.the504div1;

public class Test {
	public static void main(String[] args) {
		MathContest bad = new MathContest();
		long begin = System.currentTimeMillis();
		int x1 = bad.countBlack("BBWWB", 1);
		int x2 = bad.countBlack("BW", 10);
		int x3 = bad.countBlack("WWWWWWWBWWWWWWWWWWWWWW", 1);
		bad.countBlack("WWWWWWWBWWWWWWWWWWWWWW", 50);
		long end = System.currentTimeMillis();
		System.out.println(x1 + " " + x2 + " " + x3);
		System.out.println("cost:" + (end - begin) + " millis");
		
		MathContest_Best good = new MathContest_Best();
		begin = System.currentTimeMillis();
		int y1 = good.countBlack("BBWWB", 1);
		int y2 = good.countBlack("BW", 10);
		int y3 = good.countBlack("WWWWWWWBWWWWWWWWWWWWWW", 1);
		good.countBlack("WWWWWWWBWWWWWWWWWWWWWW", 100000);
		end = System.currentTimeMillis();
		System.out.println(y1 + " " + y2 + " " + y3);
		System.out.println("cost:" + (end - begin) + " millis");
	}
}
